package com.example.api.dao;

import com.example.api.model.entity.Inventory;

import java.util.List;

public interface InventoryDao {

    int deleteByPrimaryKey(Integer id);

    int insert(Inventory record);

    int insertSelective(Inventory record);

    Inventory selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Inventory record);

    int updateByPrimaryKey(Inventory record);

    List<Inventory> findAll();

    Inventory findByWidAndCid(Integer wid, Integer cid);

    List<Inventory> findAllByCid(Integer cid);

    List<Inventory> findAllByWid(Integer wid);

    int updateNameByCid(String name, Integer cid);

    int deleteByCid(Integer cid);

    int deleteByWidAndCid(Integer wid, Integer cid);

}